﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Flame.Dlr;
using System.Windows.Forms;

namespace Flame.Controls
{
    public class SystemFormVariables
    {
    }

   /* public class SystemFormVariables 
    {
        static SystemFormVariables _systemVariables = null;
        public static SystemFormVariables Instance
        {
            get
            {
                if (_systemVariables == null)
                    _systemVariables = new SystemFormVariables();
                return _systemVariables;
            }
        }

        public SystemVariables Dlr { get; private set; }
        public Form ScripterControlForm { get; private set; }
        public string[] Help { get; private set; }

        public SystemFormVariables()
        {
            Dlr = Flame.Dlr.SystemVariables.Instance;

              string s = @"
SHORTCUTS:

SHIFT + ENTER	          execute script
CTRL + SPACE              show intellisense : autocomplete or inline help depending on context

CTRL + ALT + SHIFT + P	  change language of the current cell to IronPython
CTRL + ALT + SHIFT + R	  change language of the current cell to IronRuby 
CTRL + ALT + SHIFT + C	  change language of the current cell to C# 
CTRL + ALT + SHIFT + S	  change language of the current cell to Powershell
CTRL + ALT + SHIFT + J	  change language of the current cell to IronJS (not active)

CTRL + ALT + SHIFT + A      change cell to automatic compilation on load  

ALT + N                   new cell ( below the current )
ALT + D                   duplicate current cell ( below ) 
ALT + L                   copy the cell above into the current 
ALT + R                   delete current cell
ALT + DOWN/UP             move down/up the current cell
ALT + PGDOWN/PGUP	        move cursor below/above the current cell

CTRL + S                  save document
SHIFT + CTRL + S          save document with name
CTRL + O	                open document
";

              Help = new string[1] { s }; 
            }

        public void Set(Manager manager, Form form)
        {
            Flame.Dlr.SystemVariables.Instance.Set(manager);
            ScripterControlForm = form;

            Flame.Dlr.SystemVariables.Instance.ScopeParameters.Variables.Add(new Variable() { Name = Flame.Dlr.SystemVariables.Name, Data = this });

            manager.Rebuild();
        }
    }*/
}
